package de.andysAppschmiede.arbeitzeit;

import java.util.Calendar;

import android.os.Bundle;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.TimePickerDialog;
import android.content.Intent;
import android.sax.TextElementListener;
import android.text.format.DateFormat;
import android.view.View;
//import android.view.View.OnClickListener;
import android.view.Menu;
import android.widget.Button;
import android.widget.TimePicker;

public class Dienstbeginn extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_dienstbeginn);

		addListenerOnButton();

	}

	public void addListenerOnButton() {

		Button nextDienstbeginn = (Button) findViewById(R.id.buttonBerechnenDienstbeginn);
		nextDienstbeginn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {

				Intent myIntent = new Intent(v.getContext(),
						ErgebnissDienstbeginnBerechnen.class);
				startActivityForResult(myIntent, 0);
			}
		});
		
	
	}
	
	

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_dienstbeginn, menu);
		return true;
	}

}
